package com.sk.bilibili.model.fragment.rank;

import com.sk.api.annotations.Autowired;
import com.sk.bilibili.mapper.ThemMapper;
import com.sk.bilibili.model.BaseRefreshModel;
import com.sk.bilibili.utils.RequestUtils;
import com.sk.bilibili.view.fragment.rank.ThemFragment;

public class ThemModel extends BaseRefreshModel<ThemFragment> {

    @Autowired
    ThemMapper themMapper;
    private int size=100;

    public void refresh(Integer typeId) {
        RequestUtils.process(themMapper.getRank(size, typeId), thems -> view.refreshSuccess(thems));
    }

}